package com.fiume.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * <p>
 * Description:
 * </p>
 *
 * @author fiume
 * @version v1.0.0
 * @create 2021-01-17 21:43
 * @see com.fiume.consumer
 */
/*@SpringBootApplication
@EnableCircuitBreaker
@EnableDiscoveryClient
可被以下注解调用*/
@SpringCloudApplication
@EnableFeignClients  //开启注解扫描
public class ConsumerApplication {
    public static void main(String[] args) {
        //springboot启动类
        SpringApplication.run(ConsumerApplication.class, args);
    }

    //将实例注入spring容器中,将来可以使用@Autowired拿到
    //使用Feign后,不需要自定义RestTemplate
    /*@Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }*/
}
